<template>
  <div id="" class="headers">
    <h2>车辆管理系统的开发与实现</h2>
    <div>
      <div>用户名：{{cv.name}}</div>
      <div>用户类型：{{cv.user_type}}</div>
      <div>
        <router-link to="/log_out">【注销】</router-link>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "hoad",
    props:['cv'],//接收 app.vue 传的值
    data() {
      return {
       /* shuju:[],
        zhi:''*/
      }
    },
    created() {
      /*this.getuser();
      this.shuju = this.cv;
      console.log(this.shuju,this.cv);*/
    },
    methods: {
     /* //请求登录用户名 用户类型
      getuser: function () {
        this.shuju = this.cv;
        console.log(this.shuju,this.cv);*/
      //}
    }
  }
</script>

<style scoped>
  .headers {
    border-bottom: 1px solid lightgrey;
    box-shadow: lightgrey 5px 0 5px 0;
    background-color: white;
    padding: 24px 0;
    font-size: 20px;
    display: flex;
    height: 100%;
    justify-content: space-between;
    vertical-align: bottom;

  }

  .headers > h2 {
    padding-left: 100px;
  }

  .headers > div {
    padding-top: 16px;
    font-size: 12px;
    padding-right: 20px
  }

  .headers > div > div {
    display: inline-block
  }
</style>
